/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.common.datareport.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 描述: 案件数据上报阶段信息 case_data_report_stage_info 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年04月19日
 */
@Table(name = "upcase.case_data_report_stage_info")
@Data
@NoArgsConstructor
public class CaseDataReportStageInfo implements Serializable {
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 上报阶段标识
     */
    @Column(name = "report_stage_tag")
    private String reportStageTag;

    /**
     * 上报阶段顺序
     */
    @Column(name = "report_stage_sort")
    private Integer reportStageSort;

    /**
     * 是否完成上报（0-否/1-是）
     */
    @Column(name = "is_finish_report")
    private String isFinishReport;

    /**
     * 失败次数
     */
    @Column(name = "fail_count")
    private Integer failCount;

    /**
     * 上报完成时间
     */
    @Column(name = "report_finish_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime reportFinishTime;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 最近一次上报时间
     */
    @Column(name = "latest_report_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime latestReportTime;

    /**
     * 最近一次上报失败原因
     */
    @Column(name = "latest_report_fail_reason")
    private String latestReportFailReason;

    /**
     * 当事人id
     */
    @Column(name = "party_id")
    private String partyId;

    private static final long serialVersionUID = 1L;

}